﻿using System;
using System.Collections.Generic;
using OnlineGameLibrary.Contract;

namespace KakaSongGame
{
    public class GlobalConst
    {
        public const string GameIdentityName = "Carcassonne";

        public const string PlayerPuppetCount_Config = "Player Puppets number";
        public const string PlayerWaitingTime_Config = "Player waiting time";

        public static GameInfo GetGameInfo()
        {
            GameInfo gameinfo = new GameInfo
            {
                IdentityName = GameIdentityName,
                GameName = "Carcassonne",
                Description = "Carcassonne board game. We donot have its copyright.",
                GameClientComponentUri = GameIdentityName + "/",
                MinPlayerNumber = 1,
                MaxPlayerNumber = 100,
                GameConfigDefines = new List<GameConfigItemDefine>
                {
                    new GameConfigItemDefine{
                        ConfigName=PlayerPuppetCount_Config,
                        ConfigValueType=typeof(int).ToString(),
                        DefaultValue="6",
                        ConfigConstrant="required,",
                        Description="how many puppets can player have"
                    },
                    new GameConfigItemDefine{
                        ConfigName=PlayerWaitingTime_Config,
                        ConfigValueType=typeof(int).ToString(),
                        DefaultValue=10,
                        ConfigConstrant="empty",
                        Description="how much time allowed for player action (seconds)"
                    }
                }
            };
            return gameinfo;
        }
    }
}
